from django.db import models


# Create your models here.
class Data(models.Model):
    place = models.CharField(max_length=128, verbose_name='地区名', null=True)
    classname = models.CharField(max_length=128, verbose_name='分类名', null=True)
    title = models.CharField(max_length=128, verbose_name='标题', null=True)
    cell = models.IntegerField(verbose_name='月销量', null=True)
    source_price = models.FloatField(verbose_name='原价', null=True)
    price = models.FloatField(verbose_name='现价', null=True)
    sku = models.CharField(max_length=128, verbose_name='库存', null=True)
    time = models.DateTimeField(auto_now=True, verbose_name='时间', )

    class Meta:
        managed = True


class Cxdata(models.Model):
    place = models.CharField(max_length=128, verbose_name='地区名', null=True)
    classname = models.CharField(max_length=128, verbose_name='分类名', null=True)
    title = models.CharField(max_length=128, verbose_name='标题', null=True)
    cell = models.CharField(max_length=128, verbose_name='月销量', null=True)
    source_price = models.CharField(max_length=128, verbose_name='原价', null=True)


class City(models.Model):
    city = models.CharField(max_length=128, verbose_name='当前地区', null=True)
